package edu.ccut.saturn.component.impl;

/**
 * 过滤响应结果
 * @author xiyue1314
 *
 */
public class SaturnResponse {
	
	private boolean response;
	
	private String url;

	public SaturnResponse() {
	
	}
	
	public void sendRedirect(){
		this.response = true;
	}
	
	public void sendRedirect(String errorUrl){
		this.response = false;
		this.url = errorUrl;
	}

	public boolean isResponse() {
		return response;
	}

	public String getUrl() {
		return url;
	}
	
}
